package com.tale.ssm.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.tale.ssm.entity.User;

@Repository
public interface UserDao {

	public User findByUserName(String username);
	public int add(User user);
	public List<User> findList(Map<String,Object> queryMap);
	public Integer getTotal(Map<String,Object> queryMap);
	public int delete(String ids);
	public int edit(User user);
//	public User login(String userName, String password);
//	public List<User> findList(String userName, Integer offset, Integer pageSize);
	
}
